﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="PreviouseTests.aspx.cs" Inherits="Patient_PreviousUrinaTests" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Предишни изследвания</title>
    <style type="text/css">
        h2
        {
            page-break-before: always;
        }
    </style>
</head>
<body>
    <form id="myform" runat="server">
        <table style="border-right: #3366ff thin solid; border-top: #3366ff thin solid; border-left: #3366ff thin solid;
            border-bottom: #3366ff thin solid">
            <tr>
                <td colspan="3" style="height: 40px; font-weight: bold; border-right: #0066ff thin solid;
                    border-top: #0066ff thin solid; border-left: #0066ff thin solid; border-bottom: #0066ff thin solid;"
                    align="center">
                    ПРЕДИШНИ ИЗСЛЕДВАНИЯ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <asp:LinkButton ID="lbprint" runat="server" Text="Отпечатай" OnClientClick="javascript:breakeveryheader();self.print();return false;"
                        ForeColor="Silver"></asp:LinkButton></td>
            </tr>
            <tr>
                <td style="height: 40px; border-right: #0066ff thin solid; border-top: #0066ff thin solid;
                    border-left: #0066ff thin solid; border-bottom: #0066ff thin solid;">
                    I. УРИНА
                </td>
                <td style="width: 10px; height: 40px;">
                </td>
                <td style="border-right: #0066ff thin solid; border-top: #0066ff thin solid; border-left: #0066ff thin solid;
                    border-bottom: #0066ff thin solid;">
                    II. КРЪВНА КАРТИНА
                </td>
            </tr>
            <tr>
                <td style="border-right: #0066ff thin solid; border-top: #0066ff thin solid; border-left: #0066ff thin solid;
                    border-bottom: #0066ff thin solid; height: 40px;">
                    <asp:DetailsView ID="dvUrina" runat="server" AutoGenerateRows="False" DataKeyNames="UrinaID"
                        DataSourceID="sdsUrina" Height="50px" Width="360px" OnItemCommand="dvUrina_ItemCommand"
                        AllowPaging="True">
                        <Fields>
                            <asp:TemplateField HeaderText="UrinaID" InsertVisible="False" SortExpression="UrinaID"
                                Visible="False">
                                <EditItemTemplate>
                                    <asp:Label ID="Label1" runat="server" Text='<%# Eval("UrinaID") %>'></asp:Label>
                                </EditItemTemplate>
                                <ItemTemplate>
                                    <asp:Label ID="Label1" runat="server" Text='<%# Bind("UrinaID") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Дата: " SortExpression="Date">
                                <EditItemTemplate>
                                    <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("Date", "{0:dd/MM/yyyy}") %>'></asp:TextBox>
                                </EditItemTemplate>
                                <InsertItemTemplate>
                                    <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("Date", "{0:dd/MM/yyyy}") %>'></asp:TextBox>
                                    <asp:RangeValidator ID="rvDate" runat="server" ToolTip="Невалидна дата!" ControlToValidate="TextBox1"
                                        ValidationGroup="vsUrinaInsert" Type="Date" MaximumValue="31/12/2100" MinimumValue="01/01/1111">*</asp:RangeValidator>
                                    <asp:RequiredFieldValidator ID="rfvCardNumber" runat="server" ToolTip="Въведи дата!"
                                        ControlToValidate="TextBox1" ValidationGroup="vsUrinaInsert">*</asp:RequiredFieldValidator>
                                </InsertItemTemplate>
                                <ItemTemplate>
                                    <asp:Label ID="Label2" runat="server" Text='<%# Bind("Date", "{0:dd/MM/yyyy}") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Цвят: " SortExpression="Color">
                                <EditItemTemplate>
                                    <asp:TextBox ID="TextBox2" runat="server" Text='<%# Bind("Color") %>'></asp:TextBox>
                                </EditItemTemplate>
                                <InsertItemTemplate>
                                    <asp:TextBox ID="TextBox2" runat="server" Text='<%# Bind("Color") %>'></asp:TextBox>
                                </InsertItemTemplate>
                                <ItemTemplate>
                                    <asp:Label ID="Label3" runat="server" Text='<%# Bind("Color") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Реакция (Ph): " SortExpression="ReactionPh">
                                <EditItemTemplate>
                                    <asp:TextBox ID="TextBox3" runat="server" Text='<%# Bind("ReactionPh") %>'></asp:TextBox>
                                </EditItemTemplate>
                                <InsertItemTemplate>
                                    <asp:TextBox ID="TextBox3" runat="server" Text='<%# Bind("ReactionPh") %>'></asp:TextBox>
                                </InsertItemTemplate>
                                <ItemTemplate>
                                    <asp:Label ID="Label4" runat="server" Text='<%# Bind("ReactionPh") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Относително тегло: " SortExpression="SpecificGravity">
                                <EditItemTemplate>
                                    <asp:TextBox ID="TextBox4" runat="server" Text='<%# Bind("SpecificGravity") %>'></asp:TextBox>
                                </EditItemTemplate>
                                <InsertItemTemplate>
                                    <asp:TextBox ID="TextBox4" runat="server" Text='<%# Bind("SpecificGravity") %>'></asp:TextBox>
                                </InsertItemTemplate>
                                <ItemTemplate>
                                    <asp:Label ID="Label5" runat="server" Text='<%# Bind("SpecificGravity") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Жълтък (качество или %): " SortExpression="Vitellus">
                                <EditItemTemplate>
                                    <asp:TextBox ID="TextBox5" runat="server" Text='<%# Bind("Vitellus") %>'></asp:TextBox>
                                </EditItemTemplate>
                                <InsertItemTemplate>
                                    <asp:TextBox ID="TextBox5" runat="server" Text='<%# Bind("Vitellus") %>'></asp:TextBox>
                                </InsertItemTemplate>
                                <ItemTemplate>
                                    <asp:Label ID="Label6" runat="server" Text='<%# Bind("Vitellus") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Захар (качество или %): " SortExpression="Sugar">
                                <EditItemTemplate>
                                    <asp:TextBox ID="TextBox6" runat="server" Text='<%# Bind("Sugar") %>'></asp:TextBox>
                                </EditItemTemplate>
                                <InsertItemTemplate>
                                    <asp:TextBox ID="TextBox6" runat="server" Text='<%# Bind("Sugar") %>'></asp:TextBox>
                                </InsertItemTemplate>
                                <ItemTemplate>
                                    <asp:Label ID="Label7" runat="server" Text='<%# Bind("Sugar") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Ацетон: " SortExpression="Aceton">
                                <EditItemTemplate>
                                    <asp:TextBox ID="TextBox7" runat="server" Text='<%# Bind("Aceton") %>'></asp:TextBox>
                                </EditItemTemplate>
                                <InsertItemTemplate>
                                    <asp:TextBox ID="TextBox7" runat="server" Text='<%# Bind("Aceton") %>'></asp:TextBox>
                                </InsertItemTemplate>
                                <ItemTemplate>
                                    <asp:Label ID="Label8" runat="server" Text='<%# Bind("Aceton") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Уребилиноген: " SortExpression="Urebilinogen">
                                <EditItemTemplate>
                                    <asp:TextBox ID="TextBox8" runat="server" Text='<%# Bind("Urebilinogen") %>'></asp:TextBox>
                                </EditItemTemplate>
                                <InsertItemTemplate>
                                    <asp:TextBox ID="TextBox8" runat="server" Text='<%# Bind("Urebilinogen") %>'></asp:TextBox>
                                </InsertItemTemplate>
                                <ItemTemplate>
                                    <asp:Label ID="Label9" runat="server" Text='<%# Bind("Urebilinogen") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Билирубин: " SortExpression="Bilirubin">
                                <EditItemTemplate>
                                    <asp:TextBox ID="TextBox9" runat="server" Text='<%# Bind("Bilirubin") %>'></asp:TextBox>
                                </EditItemTemplate>
                                <InsertItemTemplate>
                                    <asp:TextBox ID="TextBox9" runat="server" Text='<%# Bind("Bilirubin") %>'></asp:TextBox>
                                </InsertItemTemplate>
                                <ItemTemplate>
                                    <asp:Label ID="Label10" runat="server" Text='<%# Bind("Bilirubin") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Кръв: " SortExpression="Blood">
                                <EditItemTemplate>
                                    <asp:TextBox ID="TextBox10" runat="server" Text='<%# Bind("Blood") %>'></asp:TextBox>
                                </EditItemTemplate>
                                <InsertItemTemplate>
                                    <asp:TextBox ID="TextBox10" runat="server" Text='<%# Bind("Blood") %>'></asp:TextBox>
                                </InsertItemTemplate>
                                <ItemTemplate>
                                    <asp:Label ID="Label11" runat="server" Text='<%# Bind("Blood") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Левкоцити: " SortExpression="Levkociti">
                                <EditItemTemplate>
                                    <asp:TextBox ID="TextBox11" runat="server" Text='<%# Bind("Levkociti") %>'></asp:TextBox>
                                </EditItemTemplate>
                                <InsertItemTemplate>
                                    <asp:TextBox ID="TextBox11" runat="server" Text='<%# Bind("Levkociti") %>'></asp:TextBox>
                                </InsertItemTemplate>
                                <ItemTemplate>
                                    <asp:Label ID="Label12" runat="server" Text='<%# Bind("Levkociti") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Еритроцити: " SortExpression="Eritrociti">
                                <EditItemTemplate>
                                    <asp:TextBox ID="TextBox12" runat="server" Text='<%# Bind("Eritrociti") %>'></asp:TextBox>
                                </EditItemTemplate>
                                <InsertItemTemplate>
                                    <asp:TextBox ID="TextBox12" runat="server" Text='<%# Bind("Eritrociti") %>'></asp:TextBox>
                                </InsertItemTemplate>
                                <ItemTemplate>
                                    <asp:Label ID="Label13" runat="server" Text='<%# Bind("Eritrociti") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Хиал. (гран и др.): " SortExpression="Hial">
                                <EditItemTemplate>
                                    <asp:TextBox ID="TextBox13" runat="server" Text='<%# Bind("Hial") %>'></asp:TextBox>
                                </EditItemTemplate>
                                <InsertItemTemplate>
                                    <asp:TextBox ID="TextBox13" runat="server" Text='<%# Bind("Hial") %>'></asp:TextBox>
                                </InsertItemTemplate>
                                <ItemTemplate>
                                    <asp:Label ID="Label14" runat="server" Text='<%# Bind("Hial") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Ур., калц., ник., к-на и др.: " SortExpression="UrKalc">
                                <EditItemTemplate>
                                    <asp:TextBox ID="TextBox14" runat="server" Text='<%# Bind("UrKalc") %>'></asp:TextBox>
                                </EditItemTemplate>
                                <InsertItemTemplate>
                                    <asp:TextBox ID="TextBox14" runat="server" Text='<%# Bind("UrKalc") %>'></asp:TextBox>
                                </InsertItemTemplate>
                                <ItemTemplate>
                                    <asp:Label ID="Label15" runat="server" Text='<%# Bind("UrKalc") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Други: " SortExpression="Option1">
                                <EditItemTemplate>
                                    <asp:TextBox ID="TextBox15" runat="server" Text='<%# Bind("Option1") %>'></asp:TextBox>
                                </EditItemTemplate>
                                <InsertItemTemplate>
                                    <asp:TextBox ID="TextBox15" runat="server" Text='<%# Bind("Option1") %>'></asp:TextBox>
                                </InsertItemTemplate>
                                <ItemTemplate>
                                    <asp:Label ID="Label16" runat="server" Text='<%# Bind("Option1") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Други: " SortExpression="Option2">
                                <EditItemTemplate>
                                    <asp:TextBox ID="TextBox16" runat="server" Text='<%# Bind("Option2") %>'></asp:TextBox>
                                </EditItemTemplate>
                                <InsertItemTemplate>
                                    <asp:TextBox ID="TextBox16" runat="server" Text='<%# Bind("Option2") %>'></asp:TextBox>
                                </InsertItemTemplate>
                                <ItemTemplate>
                                    <asp:Label ID="Label17" runat="server" Text='<%# Bind("Option2") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Други: " SortExpression="Option3">
                                <EditItemTemplate>
                                    <asp:TextBox ID="TextBox17" runat="server" Text='<%# Bind("Option3") %>'></asp:TextBox>
                                </EditItemTemplate>
                                <InsertItemTemplate>
                                    <asp:TextBox ID="TextBox17" runat="server" Text='<%# Bind("Option3") %>'></asp:TextBox>
                                </InsertItemTemplate>
                                <ItemTemplate>
                                    <asp:Label ID="Label18" runat="server" Text='<%# Bind("Option3") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Други: " SortExpression="Option4">
                                <EditItemTemplate>
                                    <asp:TextBox ID="TextBox18" runat="server" Text='<%# Bind("Option4") %>'></asp:TextBox>
                                </EditItemTemplate>
                                <InsertItemTemplate>
                                    <asp:TextBox ID="TextBox18" runat="server" Text='<%# Bind("Option4") %>'></asp:TextBox>
                                </InsertItemTemplate>
                                <ItemTemplate>
                                    <asp:Label ID="Label19" runat="server" Text='<%# Bind("Option4") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="PatientID" InsertVisible="False" SortExpression="PatientID"
                                Visible="False">
                                <EditItemTemplate>
                                    <asp:TextBox ID="TextBox19" runat="server" Text='<%# Bind("PatientID") %>'></asp:TextBox>
                                </EditItemTemplate>
                                <ItemTemplate>
                                    <asp:Label ID="Label20" runat="server" Text='<%# Bind("PatientID") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Fields>
                    </asp:DetailsView>
                    <asp:SqlDataSource ID="sdsUrina" runat="server" ConnectionString="<%$ ConnectionStrings:ClinicConnectionString %>"
                        DeleteCommand="up_UrinaDelete" DeleteCommandType="StoredProcedure" InsertCommand="up_UrinaInsert"
                        InsertCommandType="StoredProcedure" SelectCommand="up_UrinaGetAllByPatientID"
                        SelectCommandType="StoredProcedure" UpdateCommand="up_UrinaUpdate" UpdateCommandType="StoredProcedure">
                        <SelectParameters>
                            <asp:QueryStringParameter Name="PatientID" QueryStringField="PatientID" Type="Int32" />
                        </SelectParameters>
                        <DeleteParameters>
                            <asp:Parameter Name="UrinaID" Type="Int32" />
                        </DeleteParameters>
                        <UpdateParameters>
                            <asp:Parameter Name="UrinaID" Type="Int32" />
                            <asp:Parameter Name="Date" Type="DateTime" />
                            <asp:Parameter Name="Color" Type="String" />
                            <asp:Parameter Name="ReactionPh" Type="String" />
                            <asp:Parameter Name="Vitellus" Type="String" />
                            <asp:Parameter Name="Sugar" Type="String" />
                            <asp:Parameter Name="Aceton" Type="String" />
                            <asp:Parameter Name="Urebilinogen" Type="String" />
                            <asp:Parameter Name="Bilirubin" Type="String" />
                            <asp:Parameter Name="Blood" Type="String" />
                            <asp:Parameter Name="Levkociti" Type="String" />
                            <asp:Parameter Name="Eritrociti" Type="String" />
                            <asp:Parameter Name="Hial" Type="String" />
                            <asp:Parameter Name="UrKalc" Type="String" />
                            <asp:Parameter Name="Option1" Type="String" />
                            <asp:Parameter Name="Option2" Type="String" />
                            <asp:Parameter Name="Option3" Type="String" />
                            <asp:Parameter Name="Option4" Type="String" />
                            <asp:QueryStringParameter Name="PatientID" QueryStringField="PatientID" Type="Int32" />
                        </UpdateParameters>
                        <InsertParameters>
                            <asp:Parameter Name="UrinaID" Type="Int32" />
                            <asp:Parameter Name="Date" Type="DateTime" />
                            <asp:Parameter Name="Color" Type="String" />
                            <asp:Parameter Name="ReactionPh" Type="String" />
                            <asp:Parameter Name="Vitellus" Type="String" />
                            <asp:Parameter Name="Sugar" Type="String" />
                            <asp:Parameter Name="Aceton" Type="String" />
                            <asp:Parameter Name="Urebilinogen" Type="String" />
                            <asp:Parameter Name="Bilirubin" Type="String" />
                            <asp:Parameter Name="Blood" Type="String" />
                            <asp:Parameter Name="Levkociti" Type="String" />
                            <asp:Parameter Name="Eritrociti" Type="String" />
                            <asp:Parameter Name="Hial" Type="String" />
                            <asp:Parameter Name="UrKalc" Type="String" />
                            <asp:Parameter Name="Option1" Type="String" />
                            <asp:Parameter Name="Option2" Type="String" />
                            <asp:Parameter Name="Option3" Type="String" />
                            <asp:Parameter Name="Option4" Type="String" />
                            <asp:QueryStringParameter Name="PatientID" QueryStringField="PatientID" Type="Int32" />
                        </InsertParameters>
                    </asp:SqlDataSource>
                </td>
                <td style="width: 10px">
                </td>
                <td style="border-right: #0066ff thin solid; border-top: #0066ff thin solid; border-left: #0066ff thin solid;
                    border-bottom: #0066ff thin solid">
                    <asp:DetailsView ID="dvBloodPicture" runat="server" AutoGenerateRows="False" DataKeyNames="BloodPictureID"
                        DataSourceID="sdsBloodPicture" Height="50px" Width="360px" OnItemCommand="dvBloodPicture_ItemCommand"
                        AllowPaging="True">
                        <Fields>
                            <asp:BoundField DataField="BloodPictureID" HeaderText="BloodPictureID" InsertVisible="False"
                                ReadOnly="True" SortExpression="BloodPictureID" Visible="False" />
                            <asp:TemplateField HeaderText="Дата: " SortExpression="Date">
                                <EditItemTemplate>
                                    <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("Date", "{0:dd/MM/yyyy}") %>'></asp:TextBox>
                                </EditItemTemplate>
                                <InsertItemTemplate>
                                    <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("Date", "{0:dd/MM/yyyy}") %>'></asp:TextBox>
                                    <asp:RangeValidator ID="rvDate" runat="server" ToolTip="Невалидна дата!" ControlToValidate="TextBox1"
                                        ValidationGroup="vsBloodPictureInsert" Type="Date" MaximumValue="31/12/2100"
                                        MinimumValue="01/01/1111">*</asp:RangeValidator>
                                    <asp:RequiredFieldValidator ID="rfvCardNumber" runat="server" ToolTip="Въведи дата!"
                                        ControlToValidate="TextBox1" ValidationGroup="vsBloodPictureInsert">*</asp:RequiredFieldValidator>
                                </InsertItemTemplate>
                                <ItemTemplate>
                                    <asp:Label ID="Label1" runat="server" Text='<%# Bind("Date", "{0:dd/MM/yyyy}") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:BoundField DataField="HG" HeaderText="ХГ г.%: " SortExpression="HG" />
                            <asp:BoundField DataField="Eritrociti" HeaderText="Еритроцити: " SortExpression="Eritrociti" />
                            <asp:BoundField DataField="Hematokrit" HeaderText="Хематокрит: " SortExpression="Hematokrit" />
                            <asp:BoundField DataField="Levkociti" HeaderText="Левкоцити: " SortExpression="Levkociti" />
                            <asp:BoundField DataField="Mioblasti" HeaderText="Миобласти: " SortExpression="Mioblasti" />
                            <asp:BoundField DataField="Promielobl" HeaderText="Промиелобл.: " SortExpression="Promielobl" />
                            <asp:BoundField DataField="MetaM" HeaderText="Мета М: " SortExpression="MetaM" />
                            <asp:BoundField DataField="Mladi" HeaderText="Млади: " SortExpression="Mladi" />
                            <asp:BoundField DataField="Shtab" HeaderText="Щаб: " SortExpression="Shtab" />
                            <asp:BoundField DataField="Segm" HeaderText="Сегм.: " SortExpression="Segm" />
                            <asp:BoundField DataField="Eo" HeaderText="Eo: " SortExpression="Eo" />
                            <asp:BoundField DataField="Ba" HeaderText="Ba: " SortExpression="Ba" />
                            <asp:BoundField DataField="Mo" HeaderText="Mo: " SortExpression="Mo" />
                            <asp:BoundField DataField="Limfociti" HeaderText="Лимфоцити: " SortExpression="Limfociti" />
                            <asp:BoundField DataField="Plazmociti" HeaderText="Плазмоцити: " SortExpression="Plazmociti" />
                            <asp:BoundField DataField="Trombociti" HeaderText="Тромбоцити: " SortExpression="Trombociti" />
                            <asp:BoundField DataField="Retikuloniti" HeaderText="Ретикулонити: " SortExpression="Retikuloniti" />
                            <asp:BoundField DataField="PatientID" HeaderText="PatientID" SortExpression="PatientID"
                                Visible="False" />
                        </Fields>
                    </asp:DetailsView>
                    <asp:SqlDataSource ID="sdsBloodPicture" runat="server" ConnectionString="<%$ ConnectionStrings:ClinicConnectionString %>"
                        DeleteCommand="up_BloodPictureDelete" DeleteCommandType="StoredProcedure" InsertCommand="up_BloodPictureInsert"
                        InsertCommandType="StoredProcedure" SelectCommand="up_BloodPictureGetByPatientID"
                        SelectCommandType="StoredProcedure" UpdateCommand="up_BloodPictureUpdate" UpdateCommandType="StoredProcedure">
                        <SelectParameters>
                            <asp:QueryStringParameter Name="PatientID" QueryStringField="PatientID" Type="Int32" />
                        </SelectParameters>
                        <DeleteParameters>
                            <asp:Parameter Name="BloodPictureID" Type="Int32" />
                        </DeleteParameters>
                        <UpdateParameters>
                            <asp:Parameter Name="BloodPictureID" Type="Int32" />
                            <asp:Parameter Name="Date" Type="DateTime" />
                            <asp:Parameter Name="HG" Type="String" />
                            <asp:Parameter Name="Eritrociti" Type="String" />
                            <asp:Parameter Name="Hematokrit" Type="String" />
                            <asp:Parameter Name="Levkociti" Type="String" />
                            <asp:Parameter Name="Mioblasti" Type="String" />
                            <asp:Parameter Name="Promielobl" Type="String" />
                            <asp:Parameter Name="MetaM" Type="String" />
                            <asp:Parameter Name="Mladi" Type="String" />
                            <asp:Parameter Name="Shtab" Type="String" />
                            <asp:Parameter Name="Segm" Type="String" />
                            <asp:Parameter Name="Eo" Type="String" />
                            <asp:Parameter Name="Ba" Type="String" />
                            <asp:Parameter Name="Mo" Type="String" />
                            <asp:Parameter Name="Limfociti" Type="String" />
                            <asp:Parameter Name="Plazmociti" Type="String" />
                            <asp:Parameter Name="Trombociti" Type="String" />
                            <asp:Parameter Name="Retikuloniti" Type="String" />
                            <asp:QueryStringParameter Name="PatientID" QueryStringField="PatientID" Type="Int32" />
                        </UpdateParameters>
                        <InsertParameters>
                            <asp:Parameter Name="BloodPictureID" Type="Int32" />
                            <asp:Parameter Name="Date" Type="DateTime" />
                            <asp:Parameter Name="HG" Type="String" />
                            <asp:Parameter Name="Eritrociti" Type="String" />
                            <asp:Parameter Name="Hematokrit" Type="String" />
                            <asp:Parameter Name="Levkociti" Type="String" />
                            <asp:Parameter Name="Mioblasti" Type="String" />
                            <asp:Parameter Name="Promielobl" Type="String" />
                            <asp:Parameter Name="MetaM" Type="String" />
                            <asp:Parameter Name="Mladi" Type="String" />
                            <asp:Parameter Name="Shtab" Type="String" />
                            <asp:Parameter Name="Segm" Type="String" />
                            <asp:Parameter Name="Eo" Type="String" />
                            <asp:Parameter Name="Ba" Type="String" />
                            <asp:Parameter Name="Mo" Type="String" />
                            <asp:Parameter Name="Limfociti" Type="String" />
                            <asp:Parameter Name="Plazmociti" Type="String" />
                            <asp:Parameter Name="Trombociti" Type="String" />
                            <asp:Parameter Name="Retikuloniti" Type="String" />
                            <asp:QueryStringParameter Name="PatientID" QueryStringField="PatientID" Type="Int32" />
                        </InsertParameters>
                    </asp:SqlDataSource>
                </td>
            </tr>
            <tr>
                <td style="height: 40px; border-right: #0066ff thin solid; border-top: #0066ff thin solid;
                    border-left: #0066ff thin solid; border-bottom: #0066ff thin solid;">
                    IІІ. ХОМЕОСТАЗА
                </td>
                <td style="height: 40px">
                </td>
                <td style="border-right: #0066ff thin solid; border-top: #0066ff thin solid; border-left: #0066ff thin solid;
                    border-bottom: #0066ff thin solid;">
                    ІV. РУЕ</td>
            </tr>
            <tr>
                <td rowspan="5" style="border-right: #0066ff thin solid; border-top: #0066ff thin solid;
                    border-left: #0066ff thin solid; border-bottom: #0066ff thin solid; height: 40px">
                    <asp:DetailsView ID="dvHomeostaza" runat="server" AutoGenerateRows="False" DataKeyNames="HomeostazaID"
                        DataSourceID="sdsHomeostaza" Height="50px" Width="360px" OnItemCommand="dvHomeostaza_ItemCommand"
                        AllowPaging="True">
                        <Fields>
                            <asp:BoundField DataField="HomeostazaID" HeaderText="HomeostazaID" InsertVisible="False"
                                ReadOnly="True" SortExpression="HomeostazaID" Visible="False" />
                            <asp:TemplateField HeaderText="Дата: " SortExpression="Data">
                                <EditItemTemplate>
                                    <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("Data", "{0:dd/MM/yyyy}") %>'></asp:TextBox>
                                </EditItemTemplate>
                                <InsertItemTemplate>
                                    <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("Data", "{0:dd/MM/yyyy}") %>'></asp:TextBox>
                                    <asp:RangeValidator ID="rvHomDate" runat="server" ToolTip="Невалидна дата!" ControlToValidate="TextBox1"
                                        ValidationGroup="vsHomeostazaInsert" Type="Date" MaximumValue="31/12/2100" MinimumValue="01/01/1111">*</asp:RangeValidator>
                                    <asp:RequiredFieldValidator ID="rfvHomeDate" runat="server" ToolTip="Въведи дата!"
                                        ControlToValidate="TextBox1" ValidationGroup="vsHomeostazaInsert">*</asp:RequiredFieldValidator>
                                </InsertItemTemplate>
                                <ItemTemplate>
                                    <asp:Label ID="Label1" runat="server" Text='<%# Bind("Data", "{0:dd/MM/yyyy}") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:BoundField DataField="Kamerno" HeaderText="Тромбози камерно:" SortExpression="Kamerno" />
                            <asp:BoundField DataField="Pofoni" HeaderText="Тромбози по фони:" SortExpression="Pofoni" />
                            <asp:BoundField DataField="Kurvene" HeaderText="Време на кървене:" SortExpression="Kurvene" />
                            <asp:BoundField DataField="Susirvane" HeaderText="Време на съсирване:" SortExpression="Susirvane" />
                            <asp:BoundField DataField="Protromb" HeaderText="Протромб. индекс:" SortExpression="Protromb" />
                            <asp:BoundField DataField="TrombVreme" HeaderText="Тромб. време:" SortExpression="TrombVreme" />
                            <asp:BoundField DataField="RekalifikacionnoVreme" HeaderText="Рекалификационно време:"
                                SortExpression="RekalifikacionnoVreme" />
                            <asp:BoundField DataField="HeparinovTolerans" HeaderText="Хепаринов толеранс:" SortExpression="HeparinovTolerans" />
                            <asp:BoundField DataField="Fibrinogen" HeaderText="Фибриноген мг %:" SortExpression="Fibrinogen" />
                            <asp:BoundField DataField="Ch" HeaderText="Тромбеластограма Ч:" SortExpression="Ch" />
                            <asp:BoundField DataField="H" HeaderText="Тромбеластограма Н:" SortExpression="H" />
                            <asp:BoundField DataField="Am" HeaderText="Тромбеластограма Ам:" SortExpression="Am" />
                            <asp:BoundField DataField="patientID" HeaderText="PatientID" SortExpression="patientID"
                                Visible="False" />
                            <asp:BoundField DataField="Option1" HeaderText="Други:" SortExpression="Option1" />
                            <asp:BoundField DataField="Option2" HeaderText="Други:" SortExpression="Option2" />
                            <asp:BoundField DataField="Option3" HeaderText="Други:" SortExpression="Option3" />
                        </Fields>
                    </asp:DetailsView>
                    <asp:SqlDataSource ID="sdsHomeostaza" runat="server" ConnectionString="<%$ ConnectionStrings:ClinicConnectionString %>"
                        DeleteCommand="up_HomeostazaDelete" DeleteCommandType="StoredProcedure" InsertCommand="up_HomeostazaInsert"
                        InsertCommandType="StoredProcedure" SelectCommand="up_HomeostazaGetAllByPatientID"
                        SelectCommandType="StoredProcedure" UpdateCommand="up_HomeostazaUpdate" UpdateCommandType="StoredProcedure">
                        <SelectParameters>
                            <asp:QueryStringParameter Name="PatientID" QueryStringField="PatientID" Type="Int32" />
                        </SelectParameters>
                        <DeleteParameters>
                            <asp:Parameter Name="HomeostazaID" Type="Int32" />
                        </DeleteParameters>
                        <UpdateParameters>
                            <asp:Parameter Name="HomeostazaID" Type="Int32" />
                            <asp:Parameter Name="Date" Type="DateTime" />
                            <asp:Parameter Name="Kamerno" Type="String" />
                            <asp:Parameter Name="Pofoni" Type="String" />
                            <asp:Parameter Name="Kurvene" Type="String" />
                            <asp:Parameter Name="Susirvane" Type="String" />
                            <asp:Parameter Name="Protromb" Type="String" />
                            <asp:Parameter Name="TrombVreme" Type="String" />
                            <asp:Parameter Name="RekalifikacionnoVreme" Type="String" />
                            <asp:Parameter Name="HeparinovTolerans" Type="String" />
                            <asp:Parameter Name="Fibrinogen" Type="String" />
                            <asp:Parameter Name="Ch" Type="String" />
                            <asp:Parameter Name="H" Type="String" />
                            <asp:Parameter Name="Am" Type="String" />
                            <asp:Parameter Name="patientID" Type="Int32" />
                            <asp:Parameter Name="Option1" Type="String" />
                            <asp:Parameter Name="Option2" Type="String" />
                            <asp:Parameter Name="Option3" Type="String" />
                        </UpdateParameters>
                        <InsertParameters>
                            <asp:Parameter Name="HomeostazaID" Type="Int32" />
                            <asp:Parameter Name="Data" Type="DateTime" />
                            <asp:Parameter Name="Kamerno" Type="String" />
                            <asp:Parameter Name="Pofoni" Type="String" />
                            <asp:Parameter Name="Kurvene" Type="String" />
                            <asp:Parameter Name="Susirvane" Type="String" />
                            <asp:Parameter Name="Protromb" Type="String" />
                            <asp:Parameter Name="TrombVreme" Type="String" />
                            <asp:Parameter Name="RekalifikacionnoVreme" Type="String" />
                            <asp:Parameter Name="HeparinovTolerans" Type="String" />
                            <asp:Parameter Name="Fibrinogen" Type="String" />
                            <asp:Parameter Name="Ch" Type="String" />
                            <asp:Parameter Name="H" Type="String" />
                            <asp:Parameter Name="Am" Type="String" />
                            <asp:QueryStringParameter Name="PatientID" QueryStringField="PatientID" Type="Int32" />
                            <asp:Parameter Name="Option1" Type="String" />
                            <asp:Parameter Name="Option2" Type="String" />
                            <asp:Parameter Name="Option3" Type="String" />
                        </InsertParameters>
                    </asp:SqlDataSource>
                </td>
                <td rowspan="5">
                </td>
                <td style="border-right: #0066ff thin solid; border-top: #0066ff thin solid; border-left: #0066ff thin solid;
                    border-bottom: #0066ff thin solid">
                    <asp:DetailsView ID="dvRUE" runat="server" AutoGenerateRows="False" DataKeyNames="RUEID"
                        DataSourceID="sdsRUE" Height="50px" Width="360px" OnItemCommand="dvRUE_ItemCommand"
                        AllowPaging="True">
                        <Fields>
                            <asp:BoundField DataField="RUEID" HeaderText="RUEID" InsertVisible="False" ReadOnly="True"
                                SortExpression="RUEID" Visible="False" />
                            <asp:TemplateField HeaderText="Дата: " SortExpression="Date">
                                <EditItemTemplate>
                                    <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("Date", "{0:dd/MM/yyyy}") %>'></asp:TextBox>
                                </EditItemTemplate>
                                <InsertItemTemplate>
                                    <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("Date", "{0:dd/MM/yyyy}") %>'></asp:TextBox>
                                    <asp:RangeValidator ID="rvRueDate" runat="server" ToolTip="Невалидна дата!" ControlToValidate="TextBox1"
                                        ValidationGroup="vsRueInsert" Type="Date" MaximumValue="31/12/2100" MinimumValue="01/01/1111">*</asp:RangeValidator>
                                    <asp:RequiredFieldValidator ID="rfvRueDate" runat="server" ToolTip="Въведи дата!"
                                        ControlToValidate="TextBox1" ValidationGroup="vsRueInsert">*</asp:RequiredFieldValidator>
                                </InsertItemTemplate>
                                <ItemTemplate>
                                    <asp:Label ID="Label1" runat="server" Text='<%# Bind("Date", "{0:dd/MM/yyyy}") %>'></asp:Label>
                                </ItemTemplate>
                                <HeaderStyle Width="130px" />
                            </asp:TemplateField>
                            <asp:BoundField DataField="MM" HeaderText="MM: " SortExpression="MM">
                                <HeaderStyle Width="130px" />
                            </asp:BoundField>
                            <asp:BoundField DataField="PatientID" HeaderText="PatientID" SortExpression="PatientID"
                                Visible="False" />
                        </Fields>
                    </asp:DetailsView>
                    <asp:SqlDataSource ID="sdsRUE" runat="server" ConnectionString="<%$ ConnectionStrings:ClinicConnectionString %>"
                        DeleteCommand="up_RUEDelete" DeleteCommandType="StoredProcedure" InsertCommand="up_RUEInsert"
                        InsertCommandType="StoredProcedure" SelectCommand="up_RUEGetAllByPatientID" SelectCommandType="StoredProcedure"
                        UpdateCommand="up_RUEUpdate" UpdateCommandType="StoredProcedure">
                        <SelectParameters>
                            <asp:QueryStringParameter Name="PatientID" QueryStringField="PatientID" Type="Int32" />
                        </SelectParameters>
                        <DeleteParameters>
                            <asp:Parameter Name="RUEID" Type="Int32" />
                        </DeleteParameters>
                        <UpdateParameters>
                            <asp:Parameter Name="RUEID" Type="Int32" />
                            <asp:Parameter Name="MM" Type="String" />
                            <asp:Parameter Name="Date" Type="DateTime" />
                            <asp:QueryStringParameter Name="PatientID" QueryStringField="PatientID" Type="Int32" />
                        </UpdateParameters>
                        <InsertParameters>
                            <asp:Parameter Name="RUEID" Type="Int32" />
                            <asp:Parameter Name="MM" Type="String" />
                            <asp:Parameter Name="Date" Type="DateTime" />
                            <asp:QueryStringParameter Name="PatientID" QueryStringField="PatientID" Type="Int32" />
                        </InsertParameters>
                    </asp:SqlDataSource>
                </td>
            </tr>
            <tr>
                <td style="border-right: #0066ff thin solid; border-top: #0066ff thin solid; border-left: #0066ff thin solid;
                    border-bottom: #0066ff thin solid;">
                    V. КР. ЗАХАР</td>
            </tr>
            <tr>
                <td style="border-right: #0066ff thin solid; border-top: #0066ff thin solid; border-left: #0066ff thin solid;
                    border-bottom: #0066ff thin solid">
                    <asp:DetailsView ID="dvKrSugar" runat="server" AutoGenerateRows="False" DataKeyNames="KrSugarID"
                        DataSourceID="sdsKrSugar" Height="50px" Width="360px" AllowPaging="True">
                        <Fields>
                            <asp:BoundField DataField="KrSugarID" HeaderText="KrSugarID" InsertVisible="False"
                                ReadOnly="True" SortExpression="KrSugarID" Visible="False" />
                            <asp:TemplateField HeaderText="Дата: " SortExpression="Date">
                                <EditItemTemplate>
                                    <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("Date", "{0:dd/MM/yyyy}") %>'></asp:TextBox>
                                </EditItemTemplate>
                                <InsertItemTemplate>
                                    <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("Date", "{0:dd/MM/yyyy}") %>'></asp:TextBox>
                                    <asp:RangeValidator ID="rvkrSugarDate" runat="server" ToolTip="Невалидна дата!" ControlToValidate="TextBox1"
                                        ValidationGroup="vsKrSugarInsert" Type="Date" MaximumValue="31/12/2100" MinimumValue="01/01/1111">*</asp:RangeValidator>
                                    <asp:RequiredFieldValidator ID="rfvKrSugarDate" runat="server" ToolTip="Въведи дата!"
                                        ControlToValidate="TextBox1" ValidationGroup="vsKrSugarInsert">*</asp:RequiredFieldValidator>
                                </InsertItemTemplate>
                                <ItemTemplate>
                                    <asp:Label ID="Label1" runat="server" Text='<%# Bind("Date", "{0:dd/MM/yyyy}") %>'></asp:Label>
                                </ItemTemplate>
                                <HeaderStyle Width="130px" />
                            </asp:TemplateField>
                            <asp:BoundField DataField="MG" HeaderText="М. Г. №: " SortExpression="MG">
                                <HeaderStyle Width="130px" />
                            </asp:BoundField>
                            <asp:BoundField DataField="PatientID" HeaderText="PatientID" SortExpression="PatientID"
                                Visible="False" />
                        </Fields>
                    </asp:DetailsView>
                    <asp:SqlDataSource ID="sdsKrSugar" runat="server" ConnectionString="<%$ ConnectionStrings:ClinicConnectionString %>"
                        DeleteCommand="up_KrSugarDelete" DeleteCommandType="StoredProcedure" InsertCommand="up_KrSugarInsert"
                        InsertCommandType="StoredProcedure" SelectCommand="up_KrSugarGetAllByPatientID"
                        SelectCommandType="StoredProcedure" UpdateCommand="up_KrSugarUpdate" UpdateCommandType="StoredProcedure">
                        <SelectParameters>
                            <asp:QueryStringParameter Name="PatientID" QueryStringField="PatientID" Type="Int32" />
                        </SelectParameters>
                        <DeleteParameters>
                            <asp:Parameter Name="KrSugarID" Type="Int32" />
                        </DeleteParameters>
                        <UpdateParameters>
                            <asp:Parameter Name="KrSugarID" Type="Int32" />
                            <asp:Parameter Name="MG" Type="String" />
                            <asp:Parameter Name="Date" Type="DateTime" />
                            <asp:QueryStringParameter Name="PatientID" QueryStringField="PatientID" Type="Int32" />
                        </UpdateParameters>
                        <InsertParameters>
                            <asp:Parameter Name="KrSugarID" Type="Int32" />
                            <asp:Parameter Name="MG" Type="String" />
                            <asp:Parameter Name="Date" Type="DateTime" />
                            <asp:QueryStringParameter Name="PatientID" QueryStringField="PatientID" Type="Int32" />
                        </InsertParameters>
                    </asp:SqlDataSource>
                </td>
            </tr>
            <tr>
                <td style="border-right: #0066ff thin solid; border-top: #0066ff thin solid; border-left: #0066ff thin solid;
                    border-bottom: #0066ff thin solid;">
                    VІ. ПРОТЕИНОГРАМА</td>
            </tr>
            <tr>
                <td style="border-right: #0066ff thin solid; border-top: #0066ff thin solid; border-left: #0066ff thin solid;
                    border-bottom: #0066ff thin solid">
                    <asp:DetailsView ID="dvProteinograma" runat="server" AutoGenerateRows="False" DataKeyNames="ProteinogramaID"
                        DataSourceID="sdsProteinograma" Height="50px" Width="360px" OnItemCommand="dvProteinograma_ItemCommand"
                        AllowPaging="True">
                        <Fields>
                            <asp:BoundField DataField="ProteinogramaID" HeaderText="ProteinogramaID" InsertVisible="False"
                                ReadOnly="True" SortExpression="ProteinogramaID" Visible="False" />
                            <asp:TemplateField HeaderText="Дата: " SortExpression="Date">
                                <EditItemTemplate>
                                    <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("Date", "{0:dd/MM/yyyy}") %>'></asp:TextBox>
                                </EditItemTemplate>
                                <InsertItemTemplate>
                                    <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("Date", "{0:dd/MM/yyyy}") %>'></asp:TextBox>
                                    <asp:RangeValidator ID="rvkrProtDate" runat="server" ToolTip="Невалидна дата!" ControlToValidate="TextBox1"
                                        ValidationGroup="vsProtInsert" Type="Date" MaximumValue="31/12/2100" MinimumValue="01/01/1111">*</asp:RangeValidator>
                                    <asp:RequiredFieldValidator ID="rfvProtDate" runat="server" ToolTip="Въведи дата!"
                                        ControlToValidate="TextBox1" ValidationGroup="vsProtInsert">*</asp:RequiredFieldValidator>
                                </InsertItemTemplate>
                                <ItemTemplate>
                                    <asp:Label ID="Label1" runat="server" Text='<%# Bind("Date", "{0:dd/MM/yyyy}") %>'></asp:Label>
                                </ItemTemplate>
                                <HeaderStyle Width="130px" />
                            </asp:TemplateField>
                            <asp:BoundField DataField="Bel" HeaderText="Общ. бел г %: " SortExpression="Bel">
                                <HeaderStyle Width="130px" />
                            </asp:BoundField>
                            <asp:BoundField DataField="Albumin" HeaderText="Албумин г %: " SortExpression="Albumin">
                                <HeaderStyle Width="130px" />
                            </asp:BoundField>
                            <asp:BoundField DataField="A1" HeaderText="Глобулин % α1: " SortExpression="A1">
                                <HeaderStyle Width="130px" />
                            </asp:BoundField>
                            <asp:BoundField DataField="A2" HeaderText="Глобулин % α2: " SortExpression="A2">
                                <HeaderStyle Width="130px" />
                            </asp:BoundField>
                            <asp:BoundField DataField="B" HeaderText="Глобулин % β: " SortExpression="B">
                                <HeaderStyle Width="130px" />
                            </asp:BoundField>
                            <asp:BoundField DataField="Y" HeaderText="Глобулин % γ: " SortExpression="Y">
                                <HeaderStyle Width="130px" />
                            </asp:BoundField>
                            <asp:BoundField DataField="PatientID" HeaderText="PatientID" SortExpression="PatientID"
                                Visible="False" />
                        </Fields>
                    </asp:DetailsView>
                    <asp:SqlDataSource ID="sdsProteinograma" runat="server" ConnectionString="<%$ ConnectionStrings:ClinicConnectionString %>"
                        DeleteCommand="up_ProteinogramaDelete" DeleteCommandType="StoredProcedure" InsertCommand="up_ProteinogramaInsert"
                        InsertCommandType="StoredProcedure" SelectCommand="up_ProteinogramaGetAllByPatientID"
                        SelectCommandType="StoredProcedure" UpdateCommand="up_ProteinogramaUpdate" UpdateCommandType="StoredProcedure">
                        <SelectParameters>
                            <asp:QueryStringParameter Name="PatientID" QueryStringField="PatientID" Type="Int32" />
                        </SelectParameters>
                        <DeleteParameters>
                            <asp:Parameter Name="ProteinogramaID" Type="Int32" />
                        </DeleteParameters>
                        <UpdateParameters>
                            <asp:Parameter Name="ProteinogramaID" Type="Int32" />
                            <asp:Parameter Name="Date" Type="DateTime" />
                            <asp:Parameter Name="Bel" Type="String" />
                            <asp:Parameter Name="Albumin" Type="String" />
                            <asp:Parameter Name="A1" Type="String" />
                            <asp:Parameter Name="A2" Type="String" />
                            <asp:Parameter Name="B" Type="String" />
                            <asp:Parameter Name="Y" Type="String" />
                            <asp:QueryStringParameter Name="PatientID" QueryStringField="PatientID" Type="Int32" />
                        </UpdateParameters>
                        <InsertParameters>
                            <asp:Parameter Name="ProteinogramaID" Type="Int32" />
                            <asp:Parameter Name="Date" Type="DateTime" />
                            <asp:Parameter Name="Bel" Type="String" />
                            <asp:Parameter Name="Albumin" Type="String" />
                            <asp:Parameter Name="A1" Type="String" />
                            <asp:Parameter Name="A2" Type="String" />
                            <asp:Parameter Name="B" Type="String" />
                            <asp:Parameter Name="Y" Type="String" />
                            <asp:QueryStringParameter Name="PatientID" QueryStringField="PatientID" Type="Int32" />
                        </InsertParameters>
                    </asp:SqlDataSource>
                </td>
            </tr>
            <h2>
                <tr>
                    <td style="height: 40px; border-right: #0066ff thin solid; border-top: #0066ff thin solid;
                        border-left: #0066ff thin solid; border-bottom: #0066ff thin solid;">
                        VІІ. МАСТНА ОБМЯНА
                    </td>
                    <td>
                    </td>
                    <td style="height: 40px; border-right: #0066ff thin solid; border-top: #0066ff thin solid;
                        border-left: #0066ff thin solid; border-bottom: #0066ff thin solid;">
                        VІІІ. НАТАТЪЧНО-АЗОТНИ ТЕЛА В КРЪВТА</td>
                </tr>
                <tr>
                    <td style="border-right: #0066ff thin solid; border-top: #0066ff thin solid; border-left: #0066ff thin solid;
                        border-bottom: #0066ff thin solid; height: 40px">
                        <asp:DetailsView ID="dvMastnaObmqna" runat="server" AutoGenerateRows="False" DataKeyNames="MastnaObmqnaID"
                            DataSourceID="sdsMastnaObmqna" Height="50px" Width="360px" OnItemCommand="dvMastnaObmqna_ItemCommand"
                            AllowPaging="True">
                            <Fields>
                                <asp:BoundField DataField="MastnaObmqnaID" HeaderText="MastnaObmqnaID" InsertVisible="False"
                                    ReadOnly="True" SortExpression="MastnaObmqnaID" Visible="False" />
                                <asp:TemplateField HeaderText="Дата: " SortExpression="Date">
                                    <EditItemTemplate>
                                        <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("Date", "{0:dd/MM/yyyy}") %>'></asp:TextBox>
                                    </EditItemTemplate>
                                    <InsertItemTemplate>
                                        <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("Date", "{0:dd/MM/yyyy}") %>'></asp:TextBox>
                                        <asp:RangeValidator ID="rvMODate" runat="server" ToolTip="Невалидна дата!" ControlToValidate="TextBox1"
                                            ValidationGroup="vsMOInsert" Type="Date" MaximumValue="31/12/2100" MinimumValue="01/01/1111">*</asp:RangeValidator>
                                        <asp:RequiredFieldValidator ID="rfvMODate" runat="server" ToolTip="Въведи дата!"
                                            ControlToValidate="TextBox1" ValidationGroup="vsMOInsert">*</asp:RequiredFieldValidator>
                                    </InsertItemTemplate>
                                    <ItemTemplate>
                                        <asp:Label ID="Label1" runat="server" Text='<%# Bind("Date", "{0:dd/MM/yyyy}") %>'></asp:Label>
                                    </ItemTemplate>
                                    <HeaderStyle Width="180px" />
                                </asp:TemplateField>
                                <asp:BoundField DataField="Masti" HeaderText="Общи масти мг %: " SortExpression="Masti" />
                                <asp:BoundField DataField="Holeestrin" HeaderText="Общ холеестрин мг %: " SortExpression="Holeestrin" />
                                <asp:BoundField DataField="Holesterin" HeaderText="Общ холестерин мг %:" SortExpression="Holesterin" />
                                <asp:BoundField DataField="Lipopo" HeaderText="Липопо ФД:" SortExpression="Lipopo" />
                                <asp:BoundField DataField="PatientID" HeaderText="PatientID" SortExpression="PatientID"
                                    Visible="False" />
                            </Fields>
                        </asp:DetailsView>
                        <asp:SqlDataSource ID="sdsMastnaObmqna" runat="server" ConnectionString="<%$ ConnectionStrings:ClinicConnectionString %>"
                            DeleteCommand="up_MastnaObmqnaDelete" DeleteCommandType="StoredProcedure" InsertCommand="up_MastnaObmqnaInsert"
                            InsertCommandType="StoredProcedure" SelectCommand="up_MastnaObmqnaGetAllByPatientID"
                            SelectCommandType="StoredProcedure" UpdateCommand="up_MastnaObmqnaUpdate" UpdateCommandType="StoredProcedure">
                            <SelectParameters>
                                <asp:QueryStringParameter Name="PatientID" QueryStringField="PatientID" Type="Int32" />
                            </SelectParameters>
                            <DeleteParameters>
                                <asp:Parameter Name="MastnaObmqnaID" Type="Int32" />
                            </DeleteParameters>
                            <UpdateParameters>
                                <asp:Parameter Name="MastnaObmqnaID" Type="Int32" />
                                <asp:Parameter Name="Date" Type="DateTime" />
                                <asp:Parameter Name="Masti" Type="String" />
                                <asp:Parameter Name="Holeestrin" Type="String" />
                                <asp:Parameter Name="Holesterin" Type="String" />
                                <asp:Parameter Name="Lipopo" Type="String" />
                                <asp:QueryStringParameter Name="PatientID" QueryStringField="PatientID" Type="Int32" />
                            </UpdateParameters>
                            <InsertParameters>
                                <asp:Parameter Name="MastnaObmqnaID" Type="Int32" />
                                <asp:Parameter Name="Date" Type="DateTime" />
                                <asp:Parameter Name="Masti" Type="String" />
                                <asp:Parameter Name="Holeestrin" Type="String" />
                                <asp:Parameter Name="Holesterin" Type="String" />
                                <asp:Parameter Name="Lipopo" Type="String" />
                                <asp:QueryStringParameter Name="PatientID" QueryStringField="PatientID" Type="Int32" />
                            </InsertParameters>
                        </asp:SqlDataSource>
                    </td>
                    <td>
                    </td>
                    <td style="border-right: #0066ff thin solid; border-top: #0066ff thin solid; border-left: #0066ff thin solid;
                        border-bottom: #0066ff thin solid">
                        <asp:DetailsView ID="dvNatatacno" runat="server" AutoGenerateRows="False" DataKeyNames="NatatachnoID"
                            DataSourceID="sdsNatatachno" Height="50px" Width="360px" OnItemCommand="dvNatatacno_ItemCommand"
                            AllowPaging="True">
                            <Fields>
                                <asp:BoundField DataField="NatatachnoID" HeaderText="NatatachnoID" InsertVisible="False"
                                    ReadOnly="True" SortExpression="NatatachnoID" Visible="False" />
                                <asp:TemplateField HeaderText="Дата:" SortExpression="Date">
                                    <EditItemTemplate>
                                        <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("Date", "{0:dd/MM/yyyy}") %>'></asp:TextBox>
                                    </EditItemTemplate>
                                    <InsertItemTemplate>
                                        <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("Date", "{0:dd/MM/yyyy}") %>'></asp:TextBox>
                                        <asp:RangeValidator ID="rvNatDate" runat="server" ToolTip="Невалидна дата!" ControlToValidate="TextBox1"
                                            ValidationGroup="vsNatInsert" Type="Date" MaximumValue="31/12/2100" MinimumValue="01/01/1111">*</asp:RangeValidator>
                                        <asp:RequiredFieldValidator ID="rfvNatDate" runat="server" ToolTip="Въведи дата!"
                                            ControlToValidate="TextBox1" ValidationGroup="vsNatInsert">*</asp:RequiredFieldValidator>
                                    </InsertItemTemplate>
                                    <ItemTemplate>
                                        <asp:Label ID="Label1" runat="server" Text='<%# Bind("Date", "{0:dd/MM/yyyy}") %>'></asp:Label>
                                    </ItemTemplate>
                                    <HeaderStyle Width="130px" />
                                </asp:TemplateField>
                                <asp:BoundField DataField="Ureq" HeaderText="Урея м%: " SortExpression="Ureq" />
                                <asp:BoundField DataField="Kreatinin" HeaderText="Креатинин мг%: " SortExpression="Kreatinin" />
                                <asp:BoundField DataField="Ksanto" HeaderText="Ксантопр мг%: " SortExpression="Ksanto" />
                                <asp:BoundField DataField="Indikan" HeaderText="Индикан мг%: " SortExpression="Indikan" />
                                <asp:BoundField DataField="Pikochna" HeaderText="Пикочна к-на мг%: " SortExpression="Pikochna" />
                                <asp:BoundField DataField="PatientID" HeaderText="PatientID" SortExpression="PatientID"
                                    Visible="False" />
                            </Fields>
                        </asp:DetailsView>
                        <asp:SqlDataSource ID="sdsNatatachno" runat="server" ConnectionString="<%$ ConnectionStrings:ClinicConnectionString %>"
                            DeleteCommand="up_NatatachnoDelete" DeleteCommandType="StoredProcedure" InsertCommand="up_NatatachnoInsert"
                            InsertCommandType="StoredProcedure" SelectCommand="up_NatatachnoGetAllByPatientID"
                            SelectCommandType="StoredProcedure" UpdateCommand="up_NatatachnoUpdate" UpdateCommandType="StoredProcedure">
                            <SelectParameters>
                                <asp:QueryStringParameter Name="PatientID" QueryStringField="PatientID" Type="Int32" />
                            </SelectParameters>
                            <DeleteParameters>
                                <asp:Parameter Name="NatatachnoID" Type="Int32" />
                            </DeleteParameters>
                            <UpdateParameters>
                                <asp:Parameter Name="NatatachnoID" Type="Int32" />
                                <asp:Parameter Name="Date" Type="DateTime" />
                                <asp:Parameter Name="Ureq" Type="String" />
                                <asp:Parameter Name="Kreatinin" Type="String" />
                                <asp:Parameter Name="Ksanto" Type="String" />
                                <asp:Parameter Name="Indikan" Type="String" />
                                <asp:Parameter Name="Pikochna" Type="String" />
                                <asp:QueryStringParameter Name="PatientID" QueryStringField="PatientID" Type="Int32" />
                            </UpdateParameters>
                            <InsertParameters>
                                <asp:Parameter Name="NatatachnoID" Type="Int32" />
                                <asp:Parameter Name="Date" Type="DateTime" />
                                <asp:Parameter Name="Ureq" Type="String" />
                                <asp:Parameter Name="Kreatinin" Type="String" />
                                <asp:Parameter Name="Ksanto" Type="String" />
                                <asp:Parameter Name="Indikan" Type="String" />
                                <asp:Parameter Name="Pikochna" Type="String" />
                                <asp:QueryStringParameter Name="PatientID" QueryStringField="PatientID" Type="Int32" />
                            </InsertParameters>
                        </asp:SqlDataSource>
                    </td>
                </tr>
                <tr>
                    <td style="height: 40px; border-right: #0066ff thin solid; border-top: #0066ff thin solid;
                        border-left: #0066ff thin solid; border-bottom: #0066ff thin solid;">
                        ІХ. ДРУГИ БИОХИМИЧНИ ИЗСЛЕДВАНИЯ</td>
                    <td>
                    </td>
                    <td style="border-right: #0066ff thin solid; border-top: #0066ff thin solid; border-left: #0066ff thin solid;
                        border-bottom: #0066ff thin solid">
                        Х. ЕНЗИМНА (международни единици)</td>
                </tr>
                <tr>
                    <td style="border-right: #0066ff thin solid; border-top: #0066ff thin solid; border-left: #0066ff thin solid;
                        border-bottom: #0066ff thin solid; height: 40px">
                        <asp:DetailsView ID="dvOBA" runat="server" AutoGenerateRows="False" DataKeyNames="OtherBiochemicalAnalisysID"
                            DataSourceID="sdsOBA" Height="50px" Width="360px" AllowPaging="True">
                            <Fields>
                                <asp:BoundField DataField="OtherBiochemicalAnalisysID" HeaderText="OtherBiochemicalAnalisysID"
                                    InsertVisible="False" ReadOnly="True" SortExpression="OtherBiochemicalAnalisysID"
                                    Visible="False" />
                                <asp:TemplateField HeaderText="Дата: " SortExpression="Date">
                                    <EditItemTemplate>
                                        <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("Date", "{0:dd/MM/yyyy}") %>'></asp:TextBox>
                                    </EditItemTemplate>
                                    <InsertItemTemplate>
                                        <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("Date", "{0:dd/MM/yyyy}") %>'></asp:TextBox>
                                        <asp:RangeValidator ID="rvOBADate" runat="server" ToolTip="Невалидна дата!" ControlToValidate="TextBox1"
                                            ValidationGroup="vsOBAInsert" Type="Date" MaximumValue="31/12/2100" MinimumValue="01/01/1111">*</asp:RangeValidator>
                                        <asp:RequiredFieldValidator ID="rfvOBADate" runat="server" ToolTip="Въведи дата!"
                                            ControlToValidate="TextBox1" ValidationGroup="vsOBAInsert">*</asp:RequiredFieldValidator>
                                    </InsertItemTemplate>
                                    <ItemTemplate>
                                        <asp:Label ID="Label1" runat="server" Text='<%# Bind("Date", "{0:dd/MM/yyyy}") %>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:BoundField DataField="BWhole" HeaderText="Билирубин общ:" SortExpression="BWhole" />
                                <asp:BoundField DataField="BDirect" HeaderText="Билирубин - директен:" SortExpression="BDirect" />
                                <asp:BoundField DataField="BIndirect" HeaderText="Билирубин - индиректен:" SortExpression="BIndirect" />
                                <asp:BoundField DataField="Hes" HeaderText="хес ХЕ: " SortExpression="Hes" />
                                <asp:BoundField DataField="Fe" HeaderText="Серум Fe У %:" SortExpression="Fe" />
                                <asp:BoundField DataField="W" HeaderText="Серум мед.  W %:" SortExpression="W" />
                                <asp:BoundField DataField="M" HeaderText="Магнезий мг %:" SortExpression="M" />
                                <asp:BoundField DataField="Option1" HeaderText="Други: " SortExpression="Option1" />
                                <asp:BoundField DataField="Option2" HeaderText="Други:" SortExpression="Option2" />
                                <asp:BoundField DataField="PatientID" HeaderText="PatientID" SortExpression="PatientID"
                                    Visible="False" />
                            </Fields>
                        </asp:DetailsView>
                        <asp:SqlDataSource ID="sdsOBA" runat="server" ConnectionString="<%$ ConnectionStrings:ClinicConnectionString %>"
                            DeleteCommand="up_OtherBiochemicalAnalisysDelete" DeleteCommandType="StoredProcedure"
                            InsertCommand="up_OtherBiochemicalAnalisysInsert" InsertCommandType="StoredProcedure"
                            SelectCommand="up_OtherBiochemicalAnalisysGetAllByPatientID" SelectCommandType="StoredProcedure"
                            UpdateCommand="up_OtherBiochemicalAnalisysUpdate" UpdateCommandType="StoredProcedure">
                            <SelectParameters>
                                <asp:QueryStringParameter Name="PatientID" QueryStringField="PatientID" Type="Int32" />
                            </SelectParameters>
                            <DeleteParameters>
                                <asp:Parameter Name="OtherBiochemicalAnalisysID" Type="Int32" />
                            </DeleteParameters>
                            <UpdateParameters>
                                <asp:Parameter Name="OtherBiochemicalAnalisysID" Type="Int32" />
                                <asp:Parameter Name="Date" Type="DateTime" />
                                <asp:Parameter Name="BWhole" Type="String" />
                                <asp:Parameter Name="BDirect" Type="String" />
                                <asp:Parameter Name="BIndirect" Type="String" />
                                <asp:Parameter Name="Hes" Type="String" />
                                <asp:Parameter Name="Fe" Type="String" />
                                <asp:Parameter Name="W" Type="String" />
                                <asp:Parameter Name="M" Type="String" />
                                <asp:Parameter Name="Option1" Type="String" />
                                <asp:Parameter Name="Option2" Type="String" />
                                <asp:QueryStringParameter Name="PatientID" QueryStringField="PatientID" Type="Int32" />
                            </UpdateParameters>
                            <InsertParameters>
                                <asp:Parameter Name="OtherBiochemicalAnalisysID" Type="Int32" />
                                <asp:Parameter Name="Date" Type="DateTime" />
                                <asp:Parameter Name="BWhole" Type="String" />
                                <asp:Parameter Name="BDirect" Type="String" />
                                <asp:Parameter Name="BIndirect" Type="String" />
                                <asp:Parameter Name="Hes" Type="String" />
                                <asp:Parameter Name="Fe" Type="String" />
                                <asp:Parameter Name="W" Type="String" />
                                <asp:Parameter Name="M" Type="String" />
                                <asp:Parameter Name="Option1" Type="String" />
                                <asp:Parameter Name="Option2" Type="String" />
                                <asp:QueryStringParameter Name="PatientID" QueryStringField="PatientID" Type="Int32" />
                            </InsertParameters>
                        </asp:SqlDataSource>
                    </td>
                    <td>
                    </td>
                    <td style="border-right: #0066ff thin solid; border-top: #0066ff thin solid; border-left: #0066ff thin solid;
                        border-bottom: #0066ff thin solid">
                        <asp:DetailsView ID="dvEnsim" runat="server" AutoGenerateRows="False" DataKeyNames="EnsimID"
                            DataSourceID="sdsEnsim" Height="50px" Width="360px" AllowPaging="True">
                            <Fields>
                                <asp:BoundField DataField="EnsimID" HeaderText="EnsimID" ReadOnly="True" SortExpression="EnsimID"
                                    Visible="False" />
                                <asp:TemplateField HeaderText="Дата:" SortExpression="Date">
                                    <EditItemTemplate>
                                        <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("Date", "{0:dd/MM/yyyy}") %>'></asp:TextBox>
                                    </EditItemTemplate>
                                    <InsertItemTemplate>
                                        <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("Date", "{0:dd/MM/yyyy}") %>'></asp:TextBox>
                                        <asp:RangeValidator ID="rvEnsimDate" runat="server" ToolTip="Невалидна дата!" ControlToValidate="TextBox1"
                                            ValidationGroup="vsEnsimInsert" Type="Date" MaximumValue="31/12/2100" MinimumValue="01/01/1111">*</asp:RangeValidator>
                                        <asp:RequiredFieldValidator ID="rfvEnsimDate" runat="server" ToolTip="Въведи дата!"
                                            ControlToValidate="TextBox1" ValidationGroup="vsEnsimInsert">*</asp:RequiredFieldValidator>
                                    </InsertItemTemplate>
                                    <ItemTemplate>
                                        <asp:Label ID="Label1" runat="server" Text='<%# Bind("Date", "{0:dd/MM/yyyy}") %>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:BoundField DataField="Serum" HeaderText="Амилаза серум:" SortExpression="Serum" />
                                <asp:BoundField DataField="Urina" HeaderText="Амилаза урина:" SortExpression="Urina" />
                                <asp:BoundField DataField="Alk" HeaderText="Фосфотаза алк.:" SortExpression="Alk" />
                                <asp:BoundField DataField="Kis" HeaderText="Фосфотаза кис.:" SortExpression="Kis" />
                                <asp:BoundField DataField="SGPT1" HeaderText="SGPT" SortExpression="SGPT1" />
                                <asp:BoundField DataField="SGPT2" HeaderText="SGPT" SortExpression="SGPT2" />
                                <asp:BoundField DataField="Holin" HeaderText="Холин естераза:" SortExpression="Holin" />
                                <asp:BoundField DataField="NVDN" HeaderText="НВДН:" SortExpression="NVDN" />
                                <asp:BoundField DataField="Option1" HeaderText="Други: " SortExpression="Option1" />
                                <asp:BoundField DataField="PatientID" HeaderText="PatientID" SortExpression="PatientID"
                                    Visible="False" />
                            </Fields>
                        </asp:DetailsView>
                        <asp:SqlDataSource ID="sdsEnsim" runat="server" ConnectionString="<%$ ConnectionStrings:ClinicConnectionString %>"
                            DeleteCommand="up_EnsimDelete" DeleteCommandType="StoredProcedure" InsertCommand="up_EnsimInsert"
                            InsertCommandType="StoredProcedure" SelectCommand="up_EnsimGetAllByPatientID"
                            SelectCommandType="StoredProcedure" UpdateCommand="up_EnsimUpdate" UpdateCommandType="StoredProcedure">
                            <SelectParameters>
                                <asp:QueryStringParameter Name="PatientID" QueryStringField="PatientID" Type="Int32" />
                            </SelectParameters>
                            <DeleteParameters>
                                <asp:Parameter Name="EnsimID" Type="Int32" />
                            </DeleteParameters>
                            <UpdateParameters>
                                <asp:Parameter Name="EnsimID" Type="Int32" />
                                <asp:Parameter Name="Date" Type="DateTime" />
                                <asp:Parameter Name="Serum" Type="String" />
                                <asp:Parameter Name="Urina" Type="String" />
                                <asp:Parameter Name="Alk" Type="String" />
                                <asp:Parameter Name="Kis" Type="String" />
                                <asp:Parameter Name="SGPT1" Type="String" />
                                <asp:Parameter Name="SGPT2" Type="String" />
                                <asp:Parameter Name="Holin" Type="String" />
                                <asp:Parameter Name="NVDN" Type="String" />
                                <asp:Parameter Name="Option1" Type="String" />
                                <asp:QueryStringParameter Name="PatientID" QueryStringField="PatientID" Type="Int32" />
                            </UpdateParameters>
                            <InsertParameters>
                                <asp:Parameter Name="EnsimID" Type="Int32" />
                                <asp:Parameter Name="Date" Type="DateTime" />
                                <asp:Parameter Name="Serum" Type="String" />
                                <asp:Parameter Name="Urina" Type="String" />
                                <asp:Parameter Name="Alk" Type="String" />
                                <asp:Parameter Name="Kis" Type="String" />
                                <asp:Parameter Name="SGPT1" Type="String" />
                                <asp:Parameter Name="SGPT2" Type="String" />
                                <asp:Parameter Name="Holin" Type="String" />
                                <asp:Parameter Name="NVDN" Type="String" />
                                <asp:Parameter Name="Option1" Type="String" />
                                <asp:QueryStringParameter Name="PatientID" QueryStringField="PatientID" Type="Int32" />
                            </InsertParameters>
                        </asp:SqlDataSource>
                    </td>
                </tr>
                <tr>
                    <td style="height: 40px; border-right: #0066ff thin solid; border-top: #0066ff thin solid;
                        border-left: #0066ff thin solid; border-bottom: #0066ff thin solid;">
                        ХІ. ХОРМОНИ</td>
                    <td>
                    </td>
                    <td style="border-right: #0066ff thin solid; border-top: #0066ff thin solid; border-left: #0066ff thin solid;
                        border-bottom: #0066ff thin solid">
                        ХІІ. БИОЛОГИЧНИ ПРОБИ</td>
                </tr>
                <tr>
                    <td style="border-right: #0066ff thin solid; border-top: #0066ff thin solid; border-left: #0066ff thin solid;
                        border-bottom: #0066ff thin solid; height: 40px">
                        <asp:DetailsView ID="dvHormoni" runat="server" AutoGenerateRows="False" DataKeyNames="HormoniID"
                            DataSourceID="sdsHormoni" Height="50px" Width="360px" AllowPaging="True">
                            <Fields>
                                <asp:BoundField DataField="HormoniID" HeaderText="HormoniID" InsertVisible="False"
                                    ReadOnly="True" SortExpression="HormoniID" Visible="False" />
                                <asp:TemplateField HeaderText="Дата: " SortExpression="Date">
                                    <EditItemTemplate>
                                        <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("Date", "{0:dd/MM/yyyy}") %>'></asp:TextBox>
                                    </EditItemTemplate>
                                    <InsertItemTemplate>
                                        <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("Date", "{0:dd/MM/yyyy}") %>'></asp:TextBox>
                                        <asp:RangeValidator ID="rvHormoniDate" runat="server" ToolTip="Невалидна дата!" ControlToValidate="TextBox1"
                                            ValidationGroup="vsHormoniInsert" Type="Date" MaximumValue="31/12/2100" MinimumValue="01/01/1111">*</asp:RangeValidator>
                                        <asp:RequiredFieldValidator ID="rfvHormoniDate" runat="server" ToolTip="Въведи дата!"
                                            ControlToValidate="TextBox1" ValidationGroup="vsHormoniInsert">*</asp:RequiredFieldValidator>
                                    </InsertItemTemplate>
                                    <ItemTemplate>
                                        <asp:Label ID="Label1" runat="server" Text='<%# Bind("Date", "{0:dd/MM/yyyy}") %>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:BoundField DataField="Keto" HeaderText="17 кетостероиди мг/24ч.:" SortExpression="Keto">
                                    <HeaderStyle Width="180px" />
                                </asp:BoundField>
                                <asp:BoundField DataField="Korti" HeaderText="Кортикостероиди v/24ч.:" SortExpression="Korti" />
                                <asp:BoundField DataField="Option1" HeaderText="Други:" SortExpression="Option1" />
                                <asp:BoundField DataField="PatientID" HeaderText="PatientID" SortExpression="PatientID"
                                    Visible="False" />
                            </Fields>
                        </asp:DetailsView>
                        <asp:SqlDataSource ID="sdsHormoni" runat="server" ConnectionString="<%$ ConnectionStrings:ClinicConnectionString %>"
                            DeleteCommand="up_HormoniDelete" DeleteCommandType="StoredProcedure" InsertCommand="up_HormoniInsert"
                            InsertCommandType="StoredProcedure" SelectCommand="up_HormoniGetAllByPatientID"
                            SelectCommandType="StoredProcedure" UpdateCommand="up_HormoniUpdate" UpdateCommandType="StoredProcedure">
                            <SelectParameters>
                                <asp:QueryStringParameter Name="PatientID" QueryStringField="PatientID" Type="Int32" />
                            </SelectParameters>
                            <DeleteParameters>
                                <asp:Parameter Name="HormoniID" Type="Int32" />
                            </DeleteParameters>
                            <UpdateParameters>
                                <asp:Parameter Name="HormoniID" Type="Int32" />
                                <asp:Parameter Name="Date" Type="DateTime" />
                                <asp:Parameter Name="Keto" Type="String" />
                                <asp:Parameter Name="Korti" Type="String" />
                                <asp:Parameter Name="Option1" Type="String" />
                                <asp:QueryStringParameter Name="PatientID" QueryStringField="PatientID" Type="Int32" />
                            </UpdateParameters>
                            <InsertParameters>
                                <asp:Parameter Name="HormoniID" Type="Int32" />
                                <asp:Parameter Name="Date" Type="DateTime" />
                                <asp:Parameter Name="Keto" Type="String" />
                                <asp:Parameter Name="Korti" Type="String" />
                                <asp:Parameter Name="Option1" Type="String" />
                                <asp:QueryStringParameter Name="PatientID" QueryStringField="PatientID" Type="Int32" />
                            </InsertParameters>
                        </asp:SqlDataSource>
                    </td>
                    <td rowspan="3">
                    </td>
                    <td rowspan="3" style="border-right: #0066ff thin solid; border-top: #0066ff thin solid;
                        border-left: #0066ff thin solid; border-bottom: #0066ff thin solid">
                        <asp:DetailsView ID="dvBio" runat="server" AutoGenerateRows="False" DataKeyNames="BioID"
                            DataSourceID="sdsBio" Height="50px" Width="360px" AllowPaging="True">
                            <Fields>
                                <asp:BoundField DataField="BioID" HeaderText="BioID" InsertVisible="False" ReadOnly="True"
                                    SortExpression="BioID" Visible="False" />
                                <asp:TemplateField HeaderText="Дата:" SortExpression="Date">
                                    <EditItemTemplate>
                                        <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("Date", "{0:dd/MM/yyyy}") %>'></asp:TextBox>
                                    </EditItemTemplate>
                                    <InsertItemTemplate>
                                        <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("Date", "{0:dd/MM/yyyy}") %>'></asp:TextBox>
                                        <asp:RangeValidator ID="rvBioDate" runat="server" ToolTip="Невалидна дата!" ControlToValidate="TextBox1"
                                            ValidationGroup="vsBioInsert" Type="Date" MaximumValue="31/12/2100" MinimumValue="01/01/1111">*</asp:RangeValidator>
                                        <asp:RequiredFieldValidator ID="rfvBioDate" runat="server" ToolTip="Въведи дата!"
                                            ControlToValidate="TextBox1" ValidationGroup="vsBioInsert">*</asp:RequiredFieldValidator>
                                    </InsertItemTemplate>
                                    <ItemTemplate>
                                        <asp:Label ID="Label1" runat="server" Text='<%# Bind("Date", "{0:dd/MM/yyyy}") %>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:BoundField DataField="IV" HeaderText="IV:" SortExpression="IV" />
                                <asp:BoundField DataField="V" HeaderText="V:" SortExpression="V" />
                                <asp:BoundField DataField="VI" HeaderText="VI:" SortExpression="VI" />
                                <asp:BoundField DataField="MR" HeaderText="MR:" SortExpression="MR" />
                                <asp:BoundField DataField="Kahn" HeaderText="Kahn:" SortExpression="Kahn" />
                                <asp:BoundField DataField="AST" HeaderText="AST:" SortExpression="AST" />
                                <asp:BoundField DataField="WaalRDCCd" HeaderText="Waal RDCCd:" SortExpression="WaalRDCCd" />
                                <asp:BoundField DataField="Vainberg" HeaderText="Ваинберг: " SortExpression="Vainberg" />
                                <asp:BoundField DataField="Kazoni" HeaderText="Казони: " SortExpression="Kazoni" />
                                <asp:BoundField DataField="Gali" HeaderText="Гали Менинги: " SortExpression="Gali" />
                                <asp:BoundField DataField="Latex" HeaderText="Латекс: " SortExpression="Latex" />
                                <asp:BoundField DataField="Option1" HeaderText="Други: " SortExpression="Option1" />
                                <asp:BoundField DataField="PatientID" HeaderText="PatientID" SortExpression="PatientID"
                                    Visible="False" />
                            </Fields>
                        </asp:DetailsView>
                        <asp:SqlDataSource ID="sdsBio" runat="server" ConnectionString="<%$ ConnectionStrings:ClinicConnectionString %>"
                            DeleteCommand="up_BioDelete" DeleteCommandType="StoredProcedure" InsertCommand="up_BioInsert"
                            InsertCommandType="StoredProcedure" SelectCommand="up_BioGetAllByPatientID" SelectCommandType="StoredProcedure"
                            UpdateCommand="up_BioUpdate" UpdateCommandType="StoredProcedure">
                            <SelectParameters>
                                <asp:QueryStringParameter Name="PatientID" QueryStringField="PatientID" Type="Int32" />
                            </SelectParameters>
                            <DeleteParameters>
                                <asp:Parameter Name="BioID" Type="Int32" />
                            </DeleteParameters>
                            <UpdateParameters>
                                <asp:Parameter Name="BioID" Type="Int32" />
                                <asp:Parameter Name="Date" Type="DateTime" />
                                <asp:Parameter Name="IV" Type="String" />
                                <asp:Parameter Name="V" Type="String" />
                                <asp:Parameter Name="VI" Type="String" />
                                <asp:Parameter Name="MR" Type="String" />
                                <asp:Parameter Name="Kahn" Type="String" />
                                <asp:Parameter Name="AST" Type="String" />
                                <asp:Parameter Name="WaalRDCCd" Type="String" />
                                <asp:Parameter Name="Vainberg" Type="String" />
                                <asp:Parameter Name="Kazoni" Type="String" />
                                <asp:Parameter Name="Gali" Type="String" />
                                <asp:Parameter Name="Latex" Type="String" />
                                <asp:Parameter Name="Option1" Type="String" />
                                <asp:QueryStringParameter Name="PatientID" QueryStringField="PatientID" Type="Int32" />
                            </UpdateParameters>
                            <InsertParameters>
                                <asp:Parameter Name="BioID" Type="Int32" />
                                <asp:Parameter Name="Date" Type="DateTime" />
                                <asp:Parameter Name="IV" Type="String" />
                                <asp:Parameter Name="V" Type="String" />
                                <asp:Parameter Name="VI" Type="String" />
                                <asp:Parameter Name="MR" Type="String" />
                                <asp:Parameter Name="Kahn" Type="String" />
                                <asp:Parameter Name="AST" Type="String" />
                                <asp:Parameter Name="WaalRDCCd" Type="String" />
                                <asp:Parameter Name="Vainberg" Type="String" />
                                <asp:Parameter Name="Kazoni" Type="String" />
                                <asp:Parameter Name="Gali" Type="String" />
                                <asp:Parameter Name="Latex" Type="String" />
                                <asp:Parameter Name="Option1" Type="String" />
                                <asp:QueryStringParameter Name="PatientID" QueryStringField="PatientID" Type="Int32" />
                            </InsertParameters>
                        </asp:SqlDataSource>
                    </td>
                </tr>
                <tr>
                    <td style="height: 40px; border-right: #0066ff thin solid; border-top: #0066ff thin solid;
                        border-left: #0066ff thin solid; border-bottom: #0066ff thin solid;">
                        ХІІІ. МИНЕРАЛНА ОБМЯНА м%</td>
                </tr>
                <tr>
                    <td style="border-right: #0066ff thin solid; border-top: #0066ff thin solid; border-left: #0066ff thin solid;
                        border-bottom: #0066ff thin solid; height: 40px">
                        <asp:DetailsView ID="dvMineralna" runat="server" AutoGenerateRows="False" DataKeyNames="MineralnaID"
                            DataSourceID="sdsMineralna" Height="50px" Width="360px" AllowPaging="True">
                            <Fields>
                                <asp:BoundField DataField="MineralnaID" HeaderText="MineralnaID" InsertVisible="False"
                                    ReadOnly="True" SortExpression="MineralnaID" Visible="False" />
                                <asp:TemplateField HeaderText="Дата: " SortExpression="Date">
                                    <EditItemTemplate>
                                        <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("Date", "{0:dd/MM/yyyy}") %>'></asp:TextBox>
                                    </EditItemTemplate>
                                    <InsertItemTemplate>
                                        <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("Date", "{0:dd/MM/yyyy}") %>'></asp:TextBox>
                                        <asp:RangeValidator ID="rvMineralnaDate" runat="server" ToolTip="Невалидна дата!"
                                            ControlToValidate="TextBox1" ValidationGroup="vsMineralnaInsert" Type="Date"
                                            MaximumValue="31/12/2100" MinimumValue="01/01/1111">*</asp:RangeValidator>
                                        <asp:RequiredFieldValidator ID="rfvMineralnaDate" runat="server" ToolTip="Въведи дата!"
                                            ControlToValidate="TextBox1" ValidationGroup="vsMineralnaInsert">*</asp:RequiredFieldValidator>
                                    </InsertItemTemplate>
                                    <ItemTemplate>
                                        <asp:Label ID="Label1" runat="server" Text='<%# Bind("Date", "{0:dd/MM/yyyy}") %>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:BoundField DataField="K" HeaderText="K:" SortExpression="K">
                                    <HeaderStyle Width="180px" />
                                </asp:BoundField>
                                <asp:BoundField DataField="Na" HeaderText="Na" SortExpression="Na" />
                                <asp:BoundField DataField="H" HeaderText="Хлорид: " SortExpression="H" />
                                <asp:BoundField DataField="C" HeaderText="C" SortExpression="C" />
                                <asp:BoundField DataField="P" HeaderText="Неогр Р: " SortExpression="P" />
                                <asp:BoundField DataField="PatientID" HeaderText="PatientID" SortExpression="PatientID"
                                    Visible="False" />
                            </Fields>
                        </asp:DetailsView>
                        <asp:SqlDataSource ID="sdsMineralna" runat="server" ConnectionString="<%$ ConnectionStrings:ClinicConnectionString %>"
                            DeleteCommand="up_MineralnaDelete" DeleteCommandType="StoredProcedure" InsertCommand="up_MineralnaInsert"
                            InsertCommandType="StoredProcedure" SelectCommand="up_MineralnaGetAllByPatientID"
                            SelectCommandType="StoredProcedure" UpdateCommand="up_MineralnaUpdate" UpdateCommandType="StoredProcedure">
                            <SelectParameters>
                                <asp:QueryStringParameter Name="PatientID" QueryStringField="PatientID" Type="Int32" />
                            </SelectParameters>
                            <DeleteParameters>
                                <asp:Parameter Name="MineralnaID" Type="Int32" />
                            </DeleteParameters>
                            <UpdateParameters>
                                <asp:Parameter Name="MineralnaID" Type="Int32" />
                                <asp:Parameter Name="Date" Type="DateTime" />
                                <asp:Parameter Name="K" Type="String" />
                                <asp:Parameter Name="Na" Type="String" />
                                <asp:Parameter Name="H" Type="String" />
                                <asp:Parameter Name="C" Type="String" />
                                <asp:Parameter Name="P" Type="String" />
                                <asp:QueryStringParameter Name="PatientID" QueryStringField="PatientID" Type="Int32" />
                            </UpdateParameters>
                            <InsertParameters>
                                <asp:Parameter Name="MineralnaID" Type="Int32" />
                                <asp:Parameter Name="Date" Type="DateTime" />
                                <asp:Parameter Name="K" Type="String" />
                                <asp:Parameter Name="Na" Type="String" />
                                <asp:Parameter Name="H" Type="String" />
                                <asp:Parameter Name="C" Type="String" />
                                <asp:Parameter Name="P" Type="String" />
                                <asp:QueryStringParameter Name="PatientID" QueryStringField="PatientID" Type="Int32" />
                            </InsertParameters>
                        </asp:SqlDataSource>
                    </td>
                </tr>
            </h2>
            <h2>
                <tr>
                    <td style="height: 40px; border-right: #0066ff thin solid; border-top: #0066ff thin solid;
                        border-left: #0066ff thin solid; border-bottom: #0066ff thin solid;">
                        ХІV. КРЪВНОЗАХАРЕН ПРОФИЛ</td>
                    <td>
                    </td>
                    <td style="border-right: #0066ff thin solid; border-top: #0066ff thin solid; border-left: #0066ff thin solid;
                        border-bottom: #0066ff thin solid">
                        ХV. АЛЕРГОЛОГИЧНИ ПРОБИ</td>
                </tr>
                <tr>
                    <td style="height: 40px; border-right: #0066ff thin solid; border-top: #0066ff thin solid;
                        border-left: #0066ff thin solid; border-bottom: #0066ff thin solid;">
                        &nbsp;<asp:DetailsView ID="dvSugarProfile" runat="server" AutoGenerateRows="False"
                            DataKeyNames="SugarProfileID" DataSourceID="sdsSugarProfile" Height="50px" Width="360px"
                            AllowPaging="True">
                            <Fields>
                                <asp:BoundField DataField="SugarProfileID" HeaderText="SugarProfileID" InsertVisible="False"
                                    ReadOnly="True" SortExpression="SugarProfileID" Visible="False" />
                                <asp:TemplateField HeaderText="Дата: " SortExpression="Date">
                                    <EditItemTemplate>
                                        <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("Date", "{0:dd/MM/yyyy}") %>'></asp:TextBox>
                                    </EditItemTemplate>
                                    <InsertItemTemplate>
                                        <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("Date", "{0:dd/MM/yyyy}") %>'></asp:TextBox>
                                        <asp:RangeValidator ID="rvSugProfDate" runat="server" ToolTip="Невалидна дата!" ControlToValidate="TextBox1"
                                            ValidationGroup="vsSugProfInsert" Type="Date" MaximumValue="31/12/2100" MinimumValue="01/01/1111">*</asp:RangeValidator>
                                        <asp:RequiredFieldValidator ID="rfvSugProfDate" runat="server" ToolTip="Въведи дата!"
                                            ControlToValidate="TextBox1" ValidationGroup="vsSugProfInsert">*</asp:RequiredFieldValidator>
                                    </InsertItemTemplate>
                                    <ItemTemplate>
                                        <asp:Label ID="Label1" runat="server" Text='<%# Bind("Date", "{0:dd/MM/yyyy}") %>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Час: " SortExpression="HourSmallID">
                                    <EditItemTemplate>
                                        <asp:DropDownList ID="ddlSmallHours" runat="server" DataSourceID="sdsSmallHours"
                                            DataTextField="Hours" DataValueField="HourSmallID" SelectedValue='<%# Bind("HourSmallID") %>'
                                            Width="80px">
                                        </asp:DropDownList>
                                    </EditItemTemplate>
                                    <InsertItemTemplate>
                                        <asp:DropDownList ID="ddlSmallHours" runat="server" DataSourceID="sdsSmallHours"
                                            DataTextField="Hours" DataValueField="HourSmallID" SelectedValue='<%# Bind("HourSmallID") %>'
                                            Width="80px">
                                        </asp:DropDownList>
                                    </InsertItemTemplate>
                                    <ItemTemplate>
                                        <asp:DropDownList ID="ddlSmallHours" runat="server" DataSourceID="sdsSmallHours"
                                            DataTextField="Hours" DataValueField="HourSmallID" SelectedValue='<%# Bind("HourSmallID") %>'
                                            Width="80px" Enabled="false">
                                        </asp:DropDownList>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:BoundField DataField="BloodSugar" HeaderText="Кръвна захар м%:" SortExpression="BloodSugar" />
                                <asp:TemplateField HeaderText="Урина час: " SortExpression="HoursBigID">
                                    <EditItemTemplate>
                                        <asp:DropDownList ID="ddlBigHours" runat="server" DataSourceID="sdsBigHours" DataTextField="Hours"
                                            DataValueField="HoursBigID" SelectedValue='<%# Bind("HoursBigID") %>' Width="80px">
                                        </asp:DropDownList>
                                    </EditItemTemplate>
                                    <InsertItemTemplate>
                                        <asp:DropDownList ID="ddlBigHours" runat="server" DataSourceID="sdsBigHours" DataTextField="Hours"
                                            DataValueField="HoursBigID" SelectedValue='<%# Bind("HoursBigID") %>' Width="80px">
                                        </asp:DropDownList>
                                    </InsertItemTemplate>
                                    <ItemTemplate>
                                        <asp:DropDownList ID="ddlBigHours" runat="server" DataSourceID="sdsBigHours" DataTextField="Hours"
                                            DataValueField="HoursBigID" SelectedValue='<%# Bind("HoursBigID") %>' Width="80px"
                                            Enabled="false">
                                        </asp:DropDownList>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:BoundField DataField="Quantity" HeaderText="Количество: " SortExpression="Quantity" />
                                <asp:BoundField DataField="SugarConsistence" HeaderText="% съдържание на захар:"
                                    SortExpression="SugarConsistence" />
                                <asp:BoundField DataField="PatientID" HeaderText="PatientID" SortExpression="PatientID"
                                    Visible="False" />
                            </Fields>
                        </asp:DetailsView>
                        &nbsp;<asp:SqlDataSource ID="sdsSugarProfile" runat="server" ConnectionString="<%$ ConnectionStrings:ClinicConnectionString %>"
                            DeleteCommand="up_SugarProfileDelete" DeleteCommandType="StoredProcedure" InsertCommand="up_SugarProfileInsert"
                            InsertCommandType="StoredProcedure" SelectCommand="up_SugarProfileGetAllByPatientID"
                            SelectCommandType="StoredProcedure" UpdateCommand="up_SugarProfileUpdate" UpdateCommandType="StoredProcedure">
                            <SelectParameters>
                                <asp:QueryStringParameter Name="PatientID" QueryStringField="PatientID" Type="Int32" />
                            </SelectParameters>
                            <DeleteParameters>
                                <asp:Parameter Name="SugarProfileID" Type="Int32" />
                            </DeleteParameters>
                            <UpdateParameters>
                                <asp:Parameter Name="SugarProfileID" Type="Int32" />
                                <asp:Parameter Name="Date" Type="DateTime" />
                                <asp:Parameter Name="HourSmallID" Type="Int16" />
                                <asp:Parameter Name="BloodSugar" Type="String" />
                                <asp:Parameter Name="Quantity" Type="String" />
                                <asp:Parameter Name="HoursBigID" Type="Int16" />
                                <asp:Parameter Name="SugarConsistence" Type="String" />
                                <asp:QueryStringParameter Name="PatientID" QueryStringField="PatientID" Type="Int32" />
                            </UpdateParameters>
                            <InsertParameters>
                                <asp:Parameter Name="SugarProfileID" Type="Int32" />
                                <asp:Parameter Name="Date" Type="DateTime" />
                                <asp:Parameter Name="HourSmallID" Type="Int16" />
                                <asp:Parameter Name="BloodSugar" Type="String" />
                                <asp:Parameter Name="Quantity" Type="String" />
                                <asp:Parameter Name="HoursBigID" Type="Int16" />
                                <asp:Parameter Name="SugarConsistence" Type="String" />
                                <asp:QueryStringParameter Name="PatientID" QueryStringField="PatientID" Type="Int32" />
                            </InsertParameters>
                        </asp:SqlDataSource>
                        <asp:SqlDataSource ID="sdsSmallHours" runat="server" ConnectionString="<%$ ConnectionStrings:ClinicConnectionString %>"
                            SelectCommand="up_HoursSmallGetAll" SelectCommandType="StoredProcedure"></asp:SqlDataSource>
                        <asp:SqlDataSource ID="sdsBigHours" runat="server" ConnectionString="<%$ ConnectionStrings:ClinicConnectionString %>"
                            SelectCommand="up_HoursBigGetAll" SelectCommandType="StoredProcedure"></asp:SqlDataSource>
                    </td>
                    <td>
                    </td>
                    <td style="border-right: #0066ff thin solid; border-top: #0066ff thin solid; border-left: #0066ff thin solid;
                        border-bottom: #0066ff thin solid">
                        <asp:DetailsView ID="dvAlergic" runat="server" AutoGenerateRows="False" DataKeyNames="AlergicID"
                            DataSourceID="sdsAlergic" Height="50px" Width="360px" AllowPaging="True">
                            <Fields>
                                <asp:BoundField DataField="AlergicID" HeaderText="AlergicID" InsertVisible="False"
                                    ReadOnly="True" SortExpression="AlergicID" Visible="False" />
                                <asp:TemplateField HeaderText="Дата: " SortExpression="Date">
                                    <EditItemTemplate>
                                        <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("Date", "{0:dd/MM/yyyy}") %>'></asp:TextBox>
                                    </EditItemTemplate>
                                    <InsertItemTemplate>
                                        <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("Date", "{0:dd/MM/yyyy}") %>'></asp:TextBox>
                                        <asp:RangeValidator ID="rvAlergicDate" runat="server" ToolTip="Невалидна дата!" ControlToValidate="TextBox1"
                                            ValidationGroup="vsAlergicInsert" Type="Date" MaximumValue="31/12/2100" MinimumValue="01/01/1111">*</asp:RangeValidator>
                                        <asp:RequiredFieldValidator ID="rfvAlergicDate" runat="server" ToolTip="Въведи дата!"
                                            ControlToValidate="TextBox1" ValidationGroup="vsAlergicInsert">*</asp:RequiredFieldValidator>
                                    </InsertItemTemplate>
                                    <ItemTemplate>
                                        <asp:Label ID="Label1" runat="server" Text='<%# Bind("Date", "{0:dd/MM/yyyy}") %>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:BoundField DataField="KindOfProbe" HeaderText="Вид на пробата: " SortExpression="KindOfProbe" />
                                <asp:BoundField DataField="Result1" HeaderText="Резултат: " SortExpression="Result1" />
                                <asp:BoundField DataField="Result2" HeaderText="Резултат: " SortExpression="Result2" />
                                <asp:BoundField DataField="Result3" HeaderText="Резултат: " SortExpression="Result3" />
                                <asp:BoundField DataField="PatientID" HeaderText="PatientID" SortExpression="PatientID"
                                    Visible="False" />
                            </Fields>
                        </asp:DetailsView>
                        <asp:SqlDataSource ID="sdsAlergic" runat="server" ConnectionString="<%$ ConnectionStrings:ClinicConnectionString %>"
                            DeleteCommand="up_AlergicDelete" DeleteCommandType="StoredProcedure" InsertCommand="up_AlergicInsert"
                            InsertCommandType="StoredProcedure" SelectCommand="up_AlergicGetAllByPatientID"
                            SelectCommandType="StoredProcedure" UpdateCommand="up_AlergicUpdate" UpdateCommandType="StoredProcedure">
                            <SelectParameters>
                                <asp:QueryStringParameter Name="PatientID" QueryStringField="PatientID" Type="Int32" />
                            </SelectParameters>
                            <DeleteParameters>
                                <asp:Parameter Name="AlergicID" Type="Int32" />
                            </DeleteParameters>
                            <UpdateParameters>
                                <asp:Parameter Name="AlergicID" Type="Int32" />
                                <asp:Parameter Name="Date" Type="DateTime" />
                                <asp:Parameter Name="KindOfProbe" Type="String" />
                                <asp:Parameter Name="Result1" Type="String" />
                                <asp:Parameter Name="Result2" Type="String" />
                                <asp:Parameter Name="Result3" Type="String" />
                                <asp:QueryStringParameter Name="PatientID" QueryStringField="PatientID" Type="Int32" />
                            </UpdateParameters>
                            <InsertParameters>
                                <asp:Parameter Name="AlergicID" Type="Int32" />
                                <asp:Parameter Name="Date" Type="DateTime" />
                                <asp:Parameter Name="KindOfProbe" Type="String" />
                                <asp:Parameter Name="Result1" Type="String" />
                                <asp:Parameter Name="Result2" Type="String" />
                                <asp:Parameter Name="Result3" Type="String" />
                                <asp:QueryStringParameter Name="PatientID" QueryStringField="PatientID" Type="Int32" />
                            </InsertParameters>
                        </asp:SqlDataSource>
                    </td>
                </tr>
            </h2>
        </table>
    </form>

    <script type="text/javascript">
        function breakeveryheader()
        {
            //var thestyle=(document.forms.myform.mybox.checked)? "always" : "auto";
            var thestyle = "always";
            
            for (i=0; i<document.getElementsByTagName("h2").length; i++)
            {
                document.getElementsByTagName("h2")[i].style.pageBreakBefore=thestyle;
            }
        }

    </script>

</body>
</html>
